<?php
require_once("../conf.php");
?>
<!DOCTYPE HTML>
<html>
    <head>
	<style type="text/css">
	  .jqplot-cursor-legend {
	    width: 160px;
	    font-family: "Courier New";
	    font-size: 0.85em;
	  }

	  td.jqplot-cursor-legend-swatch {
	    width: 1.3em;
	  }

	  div.jqplot-cursor-legend-swatch {
/*      width: 15px;*/
	  }
	</style>

    </head>
    <body>
        <div><span> </span><span id="info1b"></span></div>

<?php
    

    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //Chart 1 Example
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

$InPr = array(array(0.0,85.0),array(10.0,87.4),array(20.0,90.0),array(30.0,91.3),array(40.0,93.5),array(50.0,94.1),array(60.0,95.4),array(70.0,95.8),array(80.0,96.1),array(90.0,97.6),array(100.0,97.4),array(110.0,97.7),array(120.0,97.9),array(130.0,98.3),array(140.0,97.9),array(150.0,98.4),array(160.0,99.8),array(170.0,100.5),array(180.0,100.4),array(190.0,100.3),array(200.0,102.9),array(210.0,104.1),array(220.0,104.4),array(230.0,103.9),array(240.0,104.4),array(250.0,104.0),array(260.0,103.9),array(270.0,103.5),array(280.0,105.4),array(290.0,105.7),array(300.0,105.7),array(310.0,105.3),array(320.0,105.0),array(330.0,105.1),array(340.0,105.0),array(350.0,105.1),array(360.0,104.7),array(370.0,104.4),array(380.0,104.3),array(390.0,105.7),array(400.0,106.4),array(410.0,105.7),array(420.0,105.4),array(430.0,105.7),array(440.0,105.7),array(450.0,105.9),array(460.0,105.3),array(470.0,105.7),array(480.0,105.8),array(490.0,105.4),array(500.0,105.4),array(510.0,105.4),array(520.0,105.6),array(530.0,104.9),array(540.0,104.8),array(550.0,105.2),array(560.0,105.2),array(570.0,105.1),array(580.0,104.8),array(590.0,104.6),array(600.0,104.3),array(610.0,104.2),array(620.0,104.1),array(630.0,104.7),array(640.0,104.6),array(650.0,104.7),array(660.0,104.6),array(670.0,104.4),array(680.0,106.8),array(690.0,106.6),
        array(700.0,106.3),array(710.0,107.1),array(720.0,106.2),array(730.0,106.1),array(740.0,106.7),array(750.0,106.5),array(760.0,106.8),array(770.0,106.7),array(780.0,106.6),array(790.0,106.7),array(800.0,106.8),array(810.0,106.4),array(820.0,106.7),array(830.0,106.5),array(840.0,106.9),array(850.0,106.7),array(860.0,106.7),array(870.0,106.8),array(880.0,107.1),array(890.0,106.6),array(900.0,106.8),array(910.0,106.9),array(920.0,106.8),array(930.0,107.3),array(940.0,106.9),array(950.0,106.5),array(960.0,107.2),array(970.0,107.0),array(980.0,106.9),array(990.0,107.2),array(1000.0,107.7),array(1010.0,107.6),array(1020.0,107.1),array(1030.0,107.6),array(1040.0,107.2),array(1050.0,107.2),array(1060.0,107.5),array(1070.0,107.7),array(1080.0,107.3),array(1090.0,107.0),array(1100.0,107.7),array(1110.0,107.0),array(1120.0,107.8),array(1130.0,107.8),array(1140.0,107.7),array(1150.0,107.4),array(1160.0,107.8),array(1170.0,107.8),array(1180.0,107.6),array(1190.0,107.7),array(1200.0,107.4),array(1210.0,108.0),array(1220.0,372.6),array(1230.0,90.4),array(1240.0,125.0),array(1250.0,110.4),array(1260.0,108.5),array(1270.0,109.7),array(1280.0,108.9),array(1290.0,109.6),array(1300.0,110.2),array(1310.0,110.0),array(1320.0,110.7),array(1330.0,110.3),array(1340.0,110.6),array(1350.0,110.5),
        array(1360.0,110.8),array(1370.0,110.6),array(1380.0,111.0),array(1390.0,113.0),array(1400.0,112.1),array(1410.0,112.3),array(1420.0,112.3),array(1430.0,137.6),array(1440.0,179.0),array(1450.0,216.9),array(1460.0,399.2),array(1470.0,433.6),array(1480.0,203.5),array(1490.0,223.3),array(1500.0,229.8),array(1510.0,416.9),array(1520.0,198.8),array(1530.0,208.7),array(1540.0,172.0),array(1550.0,145.7),array(1560.0,119.2),array(1570.0,104.8),array(1580.0,100.1),array(1590.0,97.7),array(1600.0,97.2),array(1610.0,98.8),array(1620.0,98.1),array(1630.0,98.1),array(1640.0,98.8),array(1650.0,98.7),array(1660.0,98.5),array(1670.0,98.8),array(1680.0,98.2),array(1690.0,98.2),array(1700.0,97.7),array(1710.0,98.1),array(1720.0,97.1),array(1730.0,97.6),array(1740.0,97.7),array(1750.0,97.4),array(1760.0,97.6),array(1770.0,98.0),array(1780.0,97.6),array(1790.0,97.7),array(1800.0,97.8),array(1810.0,97.6),array(1820.0,97.9),
        array(1830.0,97.9),array(1840.0,97.8),array(1850.0,97.7),array(1860.0,97.7),array(1870.0,97.7),array(1880.0,97.4),array(1890.0,97.3),array(1900.0,97.2),array(1910.0,96.9),array(1920.0,97.2),array(1930.0,97.4),array(1940.0,97.7),array(1950.0,97.1),array(1960.0,97.1),array(1970.0,96.6),array(1980.0,96.7),array(1990.0,96.5),array(2000.0,97.2),array(2010.0,96.6),array(2020.0,96.4),array(2030.0,96.7),array(2040.0,96.8),array(2050.0,96.6),array(2060.0,96.6),array(2070.0,96.5),array(2080.0,96.6),array(2090.0,96.4),array(2100.0,96.6),array(2110.0,96.5),array(2120.0,96.2),array(2130.0,96.2),array(2140.0,96.5),array(2150.0,96.0),array(2160.0,96.2),array(2170.0,96.3),array(2180.0,96.4),array(2190.0,97.0),array(2200.0,96.8),array(2210.0,96.5),array(2220.0,96.6),array(2230.0,96.1),array(2240.0,96.1),array(2250.0,96.6),array(2260.0,96.5),array(2270.0,96.6),array(2280.0,96.4),array(2290.0,96.5),array(2300.0,96.6),array(2310.0,96.9),array(2320.0,96.8),array(2330.0,96.9),array(2340.0,97.2),array(2350.0,96.6),array(2360.0,97.3),array(2370.0,97.4),array(2380.0,97.1),array(2390.0,97.1),array(2400.0,96.8),array(2410.0,97.0),array(2420.0,97.1),array(2430.0,97.1),array(2440.0,97.0),array(2450.0,97.1),array(2460.0,97.1),array(2470.0,97.5),array(2480.0,96.9),array(2490.0,96.8),array(2500.0,96.8),array(2510.0,97.0),array(2520.0,96.7),array(2530.0,97.0),array(2540.0,97.1),array(2550.0,97.2),array(2560.0,97.1),array(2570.0,97.1),array(2580.0,97.1),array(2590.0,96.8),array(2600.0,97.2),array(2610.0,97.1),array(2620.0,97.3),array(2630.0,97.1),array(2640.0,97.1),array(2650.0,97.1),array(2660.0,97.0),array(2670.0,96.8),array(2680.0,97.3),array(2690.0,97.4),array(2700.0,97.3),array(2710.0,97.2),array(2720.0,97.1),array(2730.0,97.2),array(2740.0,97.1),array(2750.0,97.1),array(2760.0,97.1),array(2770.0,96.8),array(2780.0,96.4),array(2790.0,96.6),array(2800.0,96.6));

$OutPr =array(array(0.0,1788.1),array(10.0,1803.3),array(20.0,1807.3),array(30.0,1813.5),array(40.0,1822.0),array(50.0,1820.3),array(60.0,1823.7),array(70.0,1823.7),array(80.0,1825.3),array(90.0,1831.0),array(100.0,1832.1),array(110.0,1834.4),array(120.0,1834.4),array(130.0,1831.5),array(140.0,1832.7),array(150.0,1834.4),array(160.0,1831.5),array(170.0,1832.1),array(180.0,1830.4),array(190.0,1831.0),array(200.0,1830.4),array(210.0,1829.3),array(220.0,1829.9),array(230.0,1828.2),array(240.0,1831.0),array(250.0,1828.7),array(260.0,1827.0),array(270.0,1829.3),array(280.0,1826.5),array(290.0,1824.8),array(300.0,1824.2),array(310.0,1823.7),array(320.0,1823.7),array(330.0,1823.7),array(340.0,1825.3),array(350.0,1822.0),array(360.0,1820.3),array(370.0,1818.0),array(380.0,1819.1),array(390.0,1816.3),array(400.0,1820.8),array(410.0,1820.8),array(420.0,1819.7),array(430.0,1820.3),array(440.0,1819.7),array(450.0,1819.1),
        array(460.0,1819.1),array(470.0,1821.4),array(480.0,1821.4),array(490.0,1818.0),array(500.0,1816.9),array(510.0,1819.1),array(520.0,1818.6),array(530.0,1816.9),array(540.0,1816.9),array(550.0,1815.2),array(560.0,1814.1),array(570.0,1814.6),array(580.0,1811.2),array(590.0,1814.1),array(600.0,1813.5),array(610.0,1812.4),array(620.0,1809.0),array(630.0,1813.5),array(640.0,1811.8),array(650.0,1815.8),array(660.0,1816.3),array(670.0,1815.2),array(680.0,1815.2),array(690.0,1815.8),array(700.0,1816.3),array(710.0,1818.6),array(720.0,1816.9),array(730.0,1814.6),array(740.0,1816.3),array(750.0,1814.1),array(760.0,1812.9),array(770.0,1812.9),array(780.0,1811.2),array(790.0,1812.4),array(800.0,1815.2),array(810.0,1812.4),array(820.0,1813.5),array(830.0,1811.8),array(840.0,1811.2),array(850.0,1812.9),array(860.0,1809.0),array(870.0,1811.2),array(880.0,1816.9),array(890.0,1815.2),array(900.0,1813.5),array(910.0,1812.9),
        array(920.0,1815.8),array(930.0,1819.1),array(940.0,1818.0),array(950.0,1816.3),array(960.0,1818.0),array(970.0,1815.2),array(980.0,1818.6),array(990.0,1815.2),array(1000.0,1822.5),array(1010.0,1822.5),array(1020.0,1816.9),array(1030.0,1816.3),array(1040.0,1817.4),array(1050.0,1816.9),array(1060.0,1811.8),array(1070.0,1818.6),array(1080.0,1818.6),array(1090.0,1815.2),array(1100.0,1816.9),array(1110.0,1815.8),array(1120.0,1815.8),array(1130.0,1816.9),array(1140.0,1815.2),array(1150.0,1815.2),array(1160.0,1818.0),array(1170.0,1817.4),array(1180.0,1818.0),array(1190.0,1819.1),array(1200.0,1817.4),array(1210.0,1822.5),array(1220.0,1313.9),array(1230.0,1694.5),array(1240.0,1891.3),array(1250.0,1813.5),array(1260.0,1827.0),array(1270.0,1831.5),array(1280.0,1827.6),array(1290.0,1832.1),array(1300.0,1831.5),array(1310.0,1829.9),array(1320.0,1834.4),array(1330.0,1831.0),array(1340.0,1827.6),
        array(1350.0,1829.3),array(1360.0,1832.1),array(1370.0,1834.9),array(1380.0,1834.9),array(1390.0,1839.4),array(1400.0,1830.4),array(1410.0,1832.7),array(1420.0,1833.8),array(1430.0,1847.9),array(1440.0,1770.6),array(1450.0,1668.0),array(1460.0,1279.5),array(1470.0,1138.5),array(1480.0,1724.4),array(1490.0,1571.0),array(1500.0,1740.8),array(1510.0,1326.8),array(1520.0,1661.2),array(1530.0,1859.2),array(1540.0,1851.8),array(1550.0,1885.7),array(1560.0,1876.1),array(1570.0,1860.3),array(1580.0,1870.5),array(1590.0,1851.8),array(1600.0,1853.5),array(1610.0,1863.7),array(1620.0,1854.1),array(1630.0,1855.8),array(1640.0,1858.6),array(1650.0,1857.5),array(1660.0,1858.6),array(1670.0,1841.7),array(1680.0,1824.2),array(1690.0,1817.4),array(1700.0,1813.5),array(1710.0,1814.6),array(1720.0,1809.0),array(1730.0,1806.2),array(1740.0,1803.9),array(1750.0,1804.5),array(1760.0,1798.8),array(1770.0,1793.8),array(1780.0,1792.1),array(1790.0,1793.2),array(1800.0,1792.6),array(1810.0,1787.0),array(1820.0,1787.0),array(1830.0,1786.4),array(1840.0,1788.1),array(1850.0,1784.7),
        array(1860.0,1781.4),array(1870.0,1780.2),array(1880.0,1777.4),array(1890.0,1775.7),array(1900.0,1775.2),array(1910.0,1775.2),array(1920.0,1776.8),array(1930.0,1778.0),array(1940.0,1775.7),array(1950.0,1769.5),array(1960.0,1769.5),array(1970.0,1768.4),array(1980.0,1771.2),array(1990.0,1770.1),array(2000.0,1769.5),array(2010.0,1767.8),array(2020.0,1764.4),array(2030.0,1764.4),array(2040.0,1765.0),array(2050.0,1762.7),array(2060.0,1765.6),array(2070.0,1763.9),array(2080.0,1762.2),array(2090.0,1759.9),array(2100.0,1759.9),array(2110.0,1762.2),array(2120.0,1762.7),array(2130.0,1762.2),array(2140.0,1762.7),array(2150.0,1759.4),array(2160.0,1761.1),array(2170.0,1761.6),array(2180.0,1763.3),array(2190.0,1765.0),array(2200.0,1768.4),array(2210.0,1763.3),array(2220.0,1762.7),array(2230.0,1759.9),array(2240.0,1762.7),array(2250.0,1764.4),array(2260.0,1765.6),array(2270.0,1766.7),array(2280.0,1763.3),array(2290.0,1763.3),array(2300.0,1763.9),array(2310.0,1762.7),array(2320.0,1762.7),array(2330.0,1767.3),array(2340.0,1767.8),array(2350.0,1765.6),array(2360.0,1766.1),
        array(2370.0,1766.7),array(2380.0,1766.7),array(2390.0,1765.0),array(2400.0,1765.0),array(2410.0,1765.0),array(2420.0,1765.0),array(2430.0,1765.6),array(2440.0,1765.6),array(2450.0,1763.3),array(2460.0,1767.8),array(2470.0,1767.8),array(2480.0,1765.0),array(2490.0,1761.6),array(2500.0,1761.6),array(2510.0,1762.7),array(2520.0,1763.3),array(2530.0,1763.3),array(2540.0,1763.9),array(2550.0,1765.0),array(2560.0,1766.1),array(2570.0,1765.6),array(2580.0,1766.7),array(2590.0,1765.6),array(2600.0,1768.4),array(2610.0,1766.7),array(2620.0,1764.4),array(2630.0,1764.4),array(2640.0,1766.1),array(2650.0,1766.1),array(2660.0,1766.1),array(2670.0,1763.9),array(2680.0,1765.6),array(2690.0,1765.6),array(2700.0,1765.6),array(2710.0,1765.0),array(2720.0,1765.6),array(2730.0,1766.1),array(2740.0,1767.3),array(2750.0,1766.7),array(2760.0,1762.2),array(2770.0,1754.9),array(2780.0,1750.9),array(2790.0,1750.3),array(2800.0,1748.1));

$ERPM = array(array(0.0,1503.),array(10.0,3006.),array(20.0,3005.),array(30.0,1505.),array(40.0,1505.),array(50.0,3015.),array(60.0,1503.),array(70.0,3006.),array(80.0,3006.),array(90.0,1503.),array(100.0,1503.),array(110.0,1503.),array(120.0,1500.),array(130.0,1503.),array(140.0,752.),array(150.0,1503.),array(160.0,1503.),array(170.0,1503.),array(180.0,1505.),array(190.0,1503.),array(200.0,1503.),array(210.0,3006.),array(220.0,1503.),array(230.0,1503.),array(240.0,1502.),array(250.0,1503.),array(260.0,3005.),array(270.0,1500.),array(280.0,1502.),array(290.0,1502.),array(300.0,1502.),array(310.0,752.),array(320.0,1502.),array(330.0,1502.),array(340.0,1504.),array(350.0,1502.),array(360.0,1502.),array(370.0,1501.),array(380.0,1502.),array(390.0,501.),array(400.0,1501.),array(410.0,501.),array(420.0,751.),array(430.0,751.),array(440.0,1503.),array(450.0,750.),array(460.0,1501.),array(470.0,1503.),array(480.0,501.),array(490.0,1501.),array(500.0,1501.),array(510.0,501.),array(520.0,1501.),array(530.0,751.),array(540.0,1501.),array(550.0,1501.),array(560.0,1501.),array(570.0,1501.),array(580.0,1504.),array(590.0,1504.),
        array(600.0,1502.),array(610.0,751.),array(620.0,1501.),array(630.0,1501.),array(640.0,1501.),array(650.0,1501.),array(660.0,1504.),array(670.0,1502.),array(680.0,751.),array(690.0,751.),array(700.0,1501.),array(710.0,751.),array(720.0,1501.),array(730.0,1502.),array(740.0,1502.),array(750.0,751.),array(760.0,376.),array(770.0,1502.),array(780.0,1501.),array(790.0,1502.),array(800.0,1499.),array(810.0,1499.),array(820.0,750.),array(830.0,1499.),array(840.0,501.),array(850.0,300.),array(860.0,1504.),array(870.0,751.),array(880.0,1502.),array(890.0,1502.),array(900.0,1502.),array(910.0,751.),array(920.0,501.),array(930.0,1502.),array(940.0,751.),array(950.0,1502.),array(960.0,501.),array(970.0,1504.),array(980.0,751.),array(990.0,1502.),array(1000.0,751.),array(1010.0,1502.),array(1020.0,500.),array(1030.0,751.),array(1040.0,1502.),array(1050.0,751.),array(1060.0,1502.),array(1070.0,1502.),array(1080.0,751.),array(1090.0,751.),array(1100.0,1502.),array(1110.0,750.),array(1120.0,1502.),array(1130.0,375.),array(1140.0,1502.),array(1150.0,300.),array(1160.0,375.),array(1170.0,1499.),array(1180.0,300.),
        array(1190.0,375.),array(1200.0,1502.),array(1210.0,373.),array(1220.0,368.),array(1230.0,502.),array(1240.0,495.),array(1250.0,1475.),array(1260.0,1468.),array(1270.0,732.),array(1280.0,1461.),array(1290.0,1458.),array(1300.0,1456.),array(1310.0,1456.),array(1320.0,1451.),array(1330.0,1453.),array(1340.0,1453.),array(1350.0,726.),array(1360.0,1451.),array(1370.0,1451.),array(1380.0,1451.),array(1390.0,1451.),array(1400.0,1449.),array(1410.0,1449.),array(1420.0,1449.),array(1430.0,1944.),array(1440.0,1197.),array(1450.0,786.),array(1460.0,0.),array(1470.0,0.),array(1480.0,1079.),array(1490.0,1070.),array(1500.0,1085.),array(1510.0,923.),array(1520.0,1121.),array(1530.0,1293.),array(1540.0,1762.),array(1550.0,367.),array(1560.0,352.),array(1570.0,186.),array(1580.0,892.),array(1590.0,892.),array(1600.0,892.),array(1610.0,892.),array(1620.0,892.),array(1630.0,892.),array(1640.0,892.),array(1650.0,892.),array(1660.0,892.),array(1670.0,892.),array(1680.0,0.),array(1690.0,0.),array(1700.0,0.),array(1710.0,0.),array(1720.0,0.),array(1730.0,0.),array(1740.0,0.),array(1750.0,0.),array(1760.0,0.),
        array(1770.0,0.),array(1780.0,0.),array(1790.0,0.),array(1800.0,0.),array(1810.0,0.),array(1820.0,0.),array(1830.0,0.),array(1840.0,0.),array(1850.0,0.),array(1860.0,0.),array(1870.0,0.),array(1880.0,0.),array(1890.0,0.),array(1900.0,0.),array(1910.0,0.),array(1920.0,0.),array(1930.0,0.),array(1940.0,0.),array(1950.0,0.),array(1960.0,0.),array(1970.0,0.),array(1980.0,0.),array(1990.0,0.),array(2000.0,0.),array(2010.0,0.),array(2020.0,0.),array(2030.0,0.),array(2040.0,0.),array(2050.0,0.),array(2060.0,0.),array(2070.0,0.),array(2080.0,0.),array(2090.0,0.),array(2100.0,0.),array(2110.0,0.),array(2120.0,0.),array(2130.0,0.),array(2140.0,0.),array(2150.0,0.),array(2160.0,0.),array(2170.0,0.),array(2180.0,0.),array(2190.0,0.),array(2200.0,0.),array(2210.0,0.),array(2220.0,0.),array(2230.0,0.),array(2240.0,0.),array(2250.0,0.),array(2260.0,0.),array(2270.0,0.),array(2280.0,0.),array(2290.0,0.),array(2300.0,0.),array(2310.0,0.),array(2320.0,0.),array(2330.0,0.),array(2340.0,0.),array(2350.0,0.),array(2360.0,0.),array(2370.0,0.),array(2380.0,0.),array(2390.0,0.),array(2400.0,0.),array(2410.0,0.),array(2420.0,0.),array(2430.0,0.),array(2440.0,0.),
        array(2450.0,0.),array(2460.0,0.),array(2470.0,0.),array(2480.0,0.),array(2490.0,0.),array(2500.0,0.),array(2510.0,0.),array(2520.0,0.),array(2530.0,0.),array(2540.0,0.),array(2550.0,0.),array(2560.0,0.),array(2570.0,0.),array(2580.0,0.),array(2590.0,0.),array(2600.0,0.),array(2610.0,0.),array(2620.0,0.),array(2630.0,0.),array(2640.0,0.),array(2650.0,0.),array(2660.0,0.),array(2670.0,0.),array(2680.0,0.),array(2690.0,0.),array(2700.0,0.),array(2710.0,0.),array(2720.0,0.),array(2730.0,0.),array(2740.0,0.),array(2750.0,0.),array(2760.0,0.),array(2770.0,0.),array(2780.0,0.),array(2790.0,0.),array(2800.0,0.));


    $pc = new C_PhpChartX(array($InPr,$OutPr,$ERPM),'chart1');
    $pc->add_plugins(array('cursor'));

    $pc->set_series_default(array('neighborThreshold'=>0,'showMarker'=>false));
    $pc->add_series(array('label'=>'P In'));
    $pc->add_series(array('label'=>'P Out','yaxis'=>'y2axis'));
    $pc->add_series(array('label'=>'RPM','yaxis'=>'y3axis'));

    $pc->set_cursor(array(
		'showVerticalLine'=>true,
		'showTooltip'=>true,
		'followMouse'=>true,
		'showTooltipDataPosition'=>true,
		'zoom'=>true,
		'intersectionThreshold'=>6,
		'tooltipFormatString'=>'%s x:%s, y:%s'));
    $pc->set_legend(array('location'=>'nw','xoffset'=>310,'yoffset'=>100));
    $pc->set_axes_default(array('tickOptions'=>array('formatString'=>'%i'),'autoscale'=>false,'useSeriesColor'=>true));

    $pc->draw(600,320);

    ?>

    </body>
</html>